package cc.yihy.spider.entity;

import lombok.Data;

import javax.persistence.*;

@Entity
@Table(name = "TB_ARTICLE",
        uniqueConstraints = {
        @UniqueConstraint(name = "IDX_ID",columnNames = "ID")
})
@Data
public class Article {

    @Id
    @Column(name = "ID",nullable = false,unique = true)
    private Integer id;

    @Column(name = "TITLE",length = 100)
    private String title;

    @Lob
    @Column(name = "CONTENT")
    private String content;

    @Column(name = "URL")
    private String url;
}
